package cn.walket.test;

import java.util.Map;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author cainli
 * @create 2021/2/24 11:41 上午
 */
@Data
@Component
@ConfigurationProperties(prefix = "cache.jdbc")
@PropertySource("classpath:db.properties")
public class DatasourceProperties {

  private String url;
  private String username;
  private String password;
  private Integer initialSize;
  private Integer minIdle;
  private Integer maxActive;
  private Long maxWait;
  private Long timeBetweenEvictionRunsMillis;
  private Long minEvictableIdleTimeMillis;
  private String passwordCallback;
  private Map<String, String> passwordCallbackValueMap;
}
